<ion-content class="has-header" id="content" style="background: #F2F2F2;" ng-controller="activity">
    <div style="text-align: center;font-size: 12px;margin-top:30px;color:rgb(67, 67, 67)" ng-if="codeativity ==2">
        暂无最新活动
    </div>
    <!--<div class="Life_new core_new" id="core_for" ng-if="codeativity !==2">-->
        <!--<div style="overflow: hidden;position: relative" ng-if="codeativity==1" ng-repeat="activity_rows in activity_rows track by $index">-->
            <!--<img src="{{activity_rows.photo_url}}" alt="" style="width: 35%;">-->
            <!--<div class="core_wp" style="width: 60%;">-->
                <!--<h4 ng-if="activity_rows.type_name=='新闻'"><span style="font-size: 14px;" class="blue_xw">{{activity_rows.type_name}}</span><span style="font-size: 14px;">丨</span>{{activity_rows.title}}</h4>-->
                <!--<h4 ng-if="activity_rows.type_name=='公告'"><span style="font-size: 14px;" class="red_gs">{{activity_rows.type_name}}</span><span style="font-size: 14px;">丨</span>{{activity_rows.title}}</h4>-->
                <!--<h4 style="margin-bottom: 4px;">{{activity_rows.description}}</h4>-->
                <!--<span style="display:inline-block;width: 120px;height:20px;overflow: hidden;">来源：{{activity_rows.source}}</span>-->
                <!--<span>{{activity_rows.publish_time | date:'yyyy-MM.dd'}}</span>-->
            <!--</div>-->
            <!--&lt;!&ndash;//遮挡&ndash;&gt;-->

        <!--</div>-->
    <!--</div>-->
    <div class="activitybox" id="core_for" ng-if="codeativity ==1">
        <div ng-repeat="activity_row in activity_rows track by $index">
            <img src={{activity_row.photo_url}} alt="">
            <div class="state">
                <p>{{activity_row.description}}</p>

                <!--<p>{{activity_rows.type_code==0?"进行中":"已结束"}}</p>-->
            </div>

            <div class="new_mode" style="position: absolute;width: 100%;height: 100%;top:0;z-index: 9999999" data-href_code="{{activity_row.news_url}}" ng-click="acrivity_up($event)"></div>
        </div>
    </div>
</ion-content>
<style>
    .activitybox{
        margin: 10px;
    }
    .activitybox>div{
        background-color: #fff;
    }
    .activitybox img{
        width: 100%;
        height: 100%;
    }
    .activitybox .state{
        display: flex;
        justify-content: space-between;
        padding-left: 12px;
        padding-right: 12px;
    }
    .activitybox .state p:first-child{
        font-size:14px;
        font-family:PingFangSC-Regular;
        font-weight:400;
        color:rgba(51,51,51,1);
        line-height:20px;
    }
    .activitybox .state p:last-child{
        font-size:14px;
        font-family:PingFangSC-Regular;
        font-weight:400;
        color:rgba(153,153,153,1);
        line-height:20px;
    }
</style>